package edu.msg.jthr.backend.service;

import java.util.List;

import javax.ejb.Local;

import edu.msg.jthr.backend.model.AbstractModel;

@Local
public interface BaseService<T extends AbstractModel, I> {

	public abstract void insert(T obj) throws ServiceException;

	public abstract T update(T obj) throws ServiceException;

	public abstract void delete(T obj) throws ServiceException;

	public abstract List<T> getAll() throws ServiceException;

	public abstract T getById(I id) throws ServiceException;
}
